<template>
  <div class="about">
    <div class="container">
      <Item v-for="item of top" :key="item.id" :item="item"></Item>
    </div>
  </div>
</template>

<script>


export default {
  name: 'Home',
  data() {
    return {
      top:[]
    }
  },
  mounted() {
    this.$http("http://47.108.197.28:3000/dj/program/toplist").then(res=>{
      res.data.toplist.forEach(item => {
        var {program} = item
        item.picUrl = program.coverUrl;
        item.name = program.name;
      });
      this.top = res.data.toplist;
    })
  },
}
</script>

<style>

</style>
